Page({
  goDetail (e) {
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + +e.mark.id
    })
  },
  addRepair () {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index'
    })
  },
  data: {
    list: []
  },
  onShow () {
    this.getList()
  },
  async getList () {
    const { data } = await wx.http.get('/repair')
    this.setData({
      list: data.rows
    })
  }
})
